/* 设置整个body的样式 */
body {
    margin: 0 auto;
    /* background-color:#ccc; */
    width: 100%;
    max-width: 640px;
    min-width: 320px;
    font-size: 14px;
    font-family: -apple-system, Helvetica, sans-serif;
    color: #666;
    /* height: 3000px; */
}

/* 清除ul默认样式 */
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* 消除外边距合并 */
.clearfix::before,
.clearfix::after {
    display: table;
    content: "";
    clear: both;
}
input {
    -webkit_appearance: none;
    border: none;
    outline: none;
}
a {
    text-decoration: none;
    color: #fff;
    -webkit-tap-highligt: transparent;
}
a:hover {
    color: purple;
    text-decoration: underline;
}
img {
    vertical-align: bottom;
}
/* 禁用长按弹出页面 */
img , a {
    -webkit-touch-callout: none;
}
/* 设置顶部样式 */
.app {  
    height: 45px;
}
.app ul li {
    float: left;
    height: 45px;
    background-color: #333;
    text-align: center;
    color: #fff;
    line-height: 45px;
}
/* 设置第一个li */
.app ul li:nth-child(1) {
    width: 8%;
    text-align: center;
    line-height: 45px;
}
.app ul li:nth-child(1) img {
    width: 16px;
    vertical-align: middle;
}
/* 设置第二个li */
.app ul li:nth-child(2) {
    width: 10%;
    text-align: center;
    line-height: 45px;
}
.app ul li:nth-child(2) img {
    width: 30px;
    vertical-align: middle;
}
/* 设置第三个li */
.app ul li:nth-child(3) {
    margin: 0;
    padding:0;
    width: 57%;
}
/* 设置第四个li */
.app ul li:nth-child(4) {
    background-color: rgb(255,68,15);
    width: 25%;
}

/* 搜索框 */
.search {
    /* 加了固定定位的盒子需要加宽度 */
    position: fixed;
    height: 44px;
    width: 100%;
    min-width: 320px;
    max-width: 640px;
    /* margin-top: 15px; */
    /* background-color: pink; */
}
/* 设置左侧图片 */
.search .search_left {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 44px;
    /* background-color: pink; */
    
}
.search .search_left::before {
    content: "";
    display: block;
    width: 20px;
    height: 18px;
    background: url(../images/s-btn.png) no-repeat;
    /* background-position: -4px -60px;  */
    background-size: 20px 18px;
    margin: 14px 0 0 15px;
}
/* 设置右侧图片 */
.search .search_right {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 44px;
    /* background-color: purple; */
    color: #fff;
    text-align: center;
    line-height: 44px;
}
/* 设置中间样式 */
.search .search_center {
    position: relative;
    height: 30px;
    background-color: #fff;
    margin: 7px 50px;
    border-radius: 15px;
}
/* 设置中间样式的图标样式 */
.search .search_center .jd_icon {
    position: absolute;
    top: 8px;
    left: 13px;
    width: 20px;
    height: 15px;
    background-color: pink;
    background: url(../images/jd.png) no-repeat;
    background-size: 20px 15px;
}
/* 设置小竖线样式 */
.search .search_center .jd_icon::after { 
    position: absolute;
    content: "";
    top: 0;
    right: -8px;
    display: block;
    width: 1px;
    height: 15px;
    background-color: #ccc;
}
/* 设置放大镜样式 */
.search .search_center .glass {
    position: absolute;
    top: 8px;
    left: 50px;
    width: 18px;
    height: 15px;
    /* 此处使用两倍精灵图，将精灵图缩小一半，然后选取想要的图片，最后再将该图片的大小缩小一半 */
    background: url(../images/jd-sprites.png) no-repeat -81px 0px;
    background-size: 200px auto;
}
.search .search_center input {
    position: absolute;
    top: 5px;
    left: 95px;
    width: 60%;
    font-size: 16px;
    color: #ccc;
    /* 超出部分用省略号表示 */
    /* 强制一行显示 */
    white-space: nowrap;
    /* 超出部分隐藏 */
    overflow: hidden;
    /* 超出部分用省略号 */
    text-overflow: ellipsis;
}
/* 设置主体样式 */
.main_content {
    overflow: hidden;
}
.main_content .slide img {
    width: 100%;
    float: left;
}
/* 设置链接图片样式 */
.day {
    overflow: hidden;
    width: 100%;
    border-radius: 15px 15px 0 0;
}
.day a {
    float: left;
    width: 33.33%;
}
.day a img {
    width: 100%;
}
/* 设置菜单样式 */
.menu {
    width: 100%;
    padding-top: 5px;
}
.menu li {
    float: left;
    width: 20%;
    /* background-color: green; */
    text-align: center;
    
}
.menu li a img {
    width: 40px;
    /* height: 40px; */
    margin-top: 10px;
}
.menu li a p {
    color: #666;
}
.menu li a:hover {
    color: purple;
    text-decoration: underline;
}
/* 设置抽奖样式*/
.news {
    width: 100%;
}
.news ul li:nth-child(1) {
    width: 50%;
}
.news ul li {
    float: left;
    width: 25%;
    /* border: 1px solid #ccc; */
    box-sizing: border-box;  
}
.news ul li img {
    width: 100%;
}
/* 设置底部样式 */
.footer {
    /* margin-top: 10px; */
    width: 100%;
    height: 50px;
    background-color:#eee;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 50px;
    
}
.footer ul li {
    float: left;
    width: 33.33%;
    box-sizing: border-box;
} 
.footer ul li:nth-child(n+2) {
    border-left: 1px solid #ccc;
}
.footer ul li a {
    font-size: 20px;
    color: #000;
    font-weight: 400;
}
.footer ul li a:hover {
    text-decoration: none;
    color: red;
}